package com.example.apisimpledy.repository;

import com.example.apisimpledy.entity.dto.MyUser;
import com.example.apisimpledy.entity.dto.Video;
import com.example.apisimpledy.entity.dto.VideoView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VideoViewRepository extends JpaRepository<VideoView, Long> {
    boolean existsByMyUserAndVideo(MyUser myUser, Video video);
}
